package com.dreamlin.gankio

import android.view.View
import androidx.navigation.Navigation
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.NavigationUI
import com.dreamlin.gankio.base.ui.NoVMActivity
import kotlinx.android.synthetic.main.activity_startup.*


class MainActivity : NoVMActivity() {

    override val layout: Int
        get() = R.layout.activity_startup

    override fun initViews() {
        val appBarConfig = AppBarConfiguration.Builder(
            R.id.navigation_home,
            R.id.navigation_girl,
            R.id.navigation_mine
        ).build()
        val navController = Navigation.findNavController(this, R.id.nav_host_fragment)
//        NavigationUI.setupActionBarWithNavController(this, navController, appBarConfig)
        NavigationUI.setupWithNavController(nav_view, navController)
    }

    override fun initData() {

    }

    override fun click(view: View) {

    }
}
